package com.fsc.comadapoc1.events
{
	import flash.events.Event;
	
	public class PortfolioSearchEvent extends Event
	{
		public static const SEARCH_PORTFOLIO:String = "searchPortfolio";

		public static const SEARCH_COMPLETE:String = "searchComplete"; 
		
		public static const CLEAR_SEARCH_INPUT:String = "clearSearchInput";
		
		public static const SET_SEARCH_INPUT_FOCUS:String = "setSearchInputFocus";
		
		public function PortfolioSearchEvent(type:String, keywords:String)
		{
			super(type, true);
			_keywords = keywords;
		}
		
		private var _keywords:String;
		
		public function get keywords():String
		{
			return _keywords;
		}
		
		override public function clone():Event
		{
			return new PortfolioSearchEvent(type, _keywords);
		}
	}
}